<!-- Main bar -->
<div class="mainbar">

    <!-- Page heading -->
    <div class="page-head">
        <h2 class="pull-left">Post</h2>
        <div class="clearfix"></div>
        <!-- Breadcrumb -->
        <div class="bread-crumb">
            <a href="index.html"><i class="fa fa-home"></i> Home</a>
            <!-- Divider -->
            <span class="divider">/</span>
            <a href="#" class="bread-current">Post</a>
        </div>

        <div class="clearfix"></div>

    </div>
    <!-- Page heading ends -->


    <!-- Matter -->

    <div class="matter">
        <div class="container">
            <?php
            echo validation_errors();
            ?>
            <form action="" method="post" enctype="multipart/form-data">
            <div class="row">
                <div class="col-md-12">
                    <div class="widget">
                        <div class="widget-head">
                            <div class="pull-left">Make Project</div>
                            <div class="widget-icons pull-right">
                                <a href="#" class="wminimize"><i class="fa fa-chevron-up"></i></a>
                                <a href="#" class="wsettings"><i class="fa fa-wrench"></i></a>
                                <a href="#" class="wclose"><i class="fa fa-times"></i></a>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="widget-content">
                            <div class="padd">
                                <p>Image here.</p>
                                <input type="file" id="file" name="file" class="form-control col-lg-12" placeholder="Enter Title">
                                <p>Title here.</p>
                                <input type="text" id="title" name="title" class="form-control col-lg-12" placeholder="Enter Title">
                                <p>Summary here.</p>
                                <div class="text-area">
                                    <!-- Add the "cleditor" to textarea to add CLeditor -->
                                    <textarea name="summary" id="summary" class="form-control col-lg-12"></textarea>

                                </div>
                                <p>Content here.</p>
                                <div class="text-area">
                                    <textarea name="content" id="content" class="textarea"><?php echo $content_html; ?></textarea>
                                    <?php echo display_ckeditor($ckeditor); ?>
                                </div>
                            </div>
                            <div class="widget-foot">

                            </div>
                        </div>
                    </div>
                    <div class="widget">
                        <div class="widget-head">
                            <div class="pull-left">Details</div>
                            <div class="widget-icons pull-right">
                                <a href="#" class="wminimize"><i class="fa fa-chevron-up"></i></a>
                                <a href="#" class="wsettings"><i class="fa fa-wrench"></i></a>
                                <a href="#" class="wclose"><i class="fa fa-times"></i></a>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                        <div class="widget-content">
                            <div class="padd">
                                    <h6>Category</h6>
                                    <hr />
                                <?php
                                $count = count($post_tag['id']);
                                for ($i=0;$i<$count;$i++)
                                {
                                    echo ' <div class="check-box">';
                                    echo ' <label><input type=\'checkbox\' value=\'check3\' />  '  .$post_tag['name'][$i].'</label>';
                                    echo '</div>';
                                }

                                ?>

                                    <hr />
                                    <h6>Tags</h6>
                                    <hr />
                                    <input class="form-control col-lg-12" type="text" placeholder="Tags">
                                    <hr />
                                    <div class="buttons center">
                                        <button class="btn btn-primary">Save Draft</button>
                                        <button class="btn btn-default">Publish</button>
                                        <button class="btn btn-danger">Trash</button>
                                    </div>

                            </div>
                        </div>
                    </div>

                </div>
            </div>
           </form>
         <!-- post sidebar -->
        </div>
    </div>

    <!-- Matter ends -->

</div>

<!-- Mainbar ends -->
 